<%@ page import="com.qianfeng.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: jackiechan
  Date: 2021/8/31
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
想在这个页面中显示用户的的信息,怎么显示呢
第一步 先获取用户
--%>

<%--<%--%>
<%--    //    User user = (User) request.getAttribute("user");--%>
<%--//    User user = (User) request.getServletContext().getAttribute("user");--%>
<%--    //   User user = (User) request.getSession().getAttribute("user");--%>
<%--    User user = (User) pageContext.findAttribute("user");--%>
<%--%>--%>

<%--id:<%= user.getUid()%><br>--%>
<%--username:<%= user.getUsername()%><br>--%>
<%--name: <%= user.getName()%>--%>
<%--<br>--%>
<%--addr:<%= user.getAddr() %><br>--%>
<%--email:<%= user.getEmail() %><br>--%>
<%--phone:<%= user.getPhone() %><br>--%>
<%--state:<%= user.getState()%><br>--%>


id:${user.uid}<br>
username:${user.username}<br>
name:${user.name}<br>
addr${user.addr}<br>
phone:${user.phone}<br>
state:${user.state}<br>
email:${user.email}<br>

</body>
</html>
